<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单流程可视化 | 现代电商系统架构</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
            color: #0f172a;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        }
        .step-card {
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        .step-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        .code-block {
            background-color: #1e293b;
            color: #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }
        .code-header {
            background-color: #0f172a;
            padding: 8px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .code-lang {
            color: #94a3b8;
            font-size: 0.875rem;
        }
        .copy-btn {
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.2s;
        }
        .copy-btn:hover {
            color: #e2e8f0;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -1.5rem;
            top: 0;
            height: 100%;
            width: 2px;
            background-color: #cbd5e1;
        }
        .timeline-dot {
            position: absolute;
            left: -1.75rem;
            top: 0.5rem;
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            background-color: #6366f1;
            border: 3px solid #e0e7ff;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container">
            <div class="max-w-3xl mx-auto text-center">
                <div class="inline-flex items-center mb-4 px-4 py-2 bg-white/20 rounded-full">
                    <i class="fas fa-random mr-2"></i>
                    <span>电商系统架构</span>
                </div>
                <h1 class="text-4xl md:text-5xl font-bold mb-6">订单处理流程可视化</h1>
                <p class="text-xl opacity-90 mb-8">从用户下单到订单完成的完整技术实现路径，解析现代电商系统的高效处理机制</p>
                <div class="flex justify-center space-x-4">
                    <a href="#process" class="px-6 py-3 bg-white text-indigo-600 font-medium rounded-lg hover:bg-white/90 transition">
                        <i class="fas fa-list-ol mr-2"></i>查看完整流程
                    </a>
                    <a href="#diagram" class="px-6 py-3 bg-white/10 border border-white/20 font-medium rounded-lg hover:bg-white/20 transition">
                        <i class="fas fa-project-diagram mr-2"></i>交互式流程图
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- Process Timeline -->
    <section id="process" class="py-16 bg-white">
        <div class="container">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold mb-4">订单处理全流程</h2>
                <p class="max-w-2xl mx-auto text-slate-600">从用户发起请求到订单完成的7个关键步骤，每个环节都需要精确和高效的技术实现</p>
            </div>
            
            <div class="max-w-4xl mx-auto">
                <!-- Step 1 -->
                <div class="relative pl-8 mb-12 timeline-item">
                    <div class="timeline-dot"></div>
                    <div class="step-card bg-white p-6 rounded-xl border border-slate-100">
                        <div class="flex items-start">
                            <div class="bg-indigo-100 text-indigo-600 rounded-lg p-3 mr-4">
                                <i class="fas fa-mouse-pointer text-xl"></i>
                            </div>
                            <div>
                                <h3 class="text-xl font-bold mb-2"><span class="text-indigo-600">1.</span> 用户发起订单请求</h3>
                                <p class="text-slate-600 mb-4">用户在前端页面选择商品并提交订单请求，触发整个流程</p>
                                
                                <div class="mb-4">
                                    <h4 class="font-medium mb-2 text-slate-800 flex items-center">
                                        <i class="fas fa-user-circle mr-2 text-indigo-500"></i>用户操作
                                    </h4>
                                    <p class="text-slate-600 mb-3">用户点击